/**
 * Copyright (c) 2017-2024 Nop Platform. All rights reserved.
 * Author: canonical_entropy@163.com
 * Blog:   https://www.zhihu.com/people/canonical-entropy
 * Gitee:  https://gitee.com/canonical-entropy/nop-entropy
 * Github: https://github.com/entropy-cloud/nop-entropy
 */
package com.gitee.wsl.func.select.collector

import com.gitee.wsl.func.select.ISelectionCollector
import com.gitee.wsl.func.select.SelectResult

class SelectAllCollector<E> : ISelectionCollector<E> {
    val elements = ArrayList<E>()

    override fun collect(e: E): SelectResult {
        elements.add(e)
        return SelectResult.FOUND
    }
}
